package com.example.personnel_oa.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.comment_oa.pojos.Education;
import com.example.comment_oa.pojos.Experience;
import com.example.personnel_oa.mapper.ExperienceMapper;
import com.example.personnel_oa.service.ExperienceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author asus
* @description 针对表【experience】的数据库操作Service实现
* @createDate 2022-10-20 13:58:12
*/
@Service
public class ExperienceServiceImpl extends ServiceImpl<ExperienceMapper, Experience>
implements ExperienceService {
    @Autowired
    ExperienceMapper experienceMapper;

    @Override
    public List<Experience> selectlist() {
        QueryWrapper<Experience> wrapper = new QueryWrapper<>();
        QueryWrapper<Experience> experience = wrapper.le("experience_state", 0);
        List<Experience> sources = experienceMapper.selectList(experience);
        return sources;
    }

}
